<link type="text/css" rel="stylesheet" href="{SKIN_PATH}js/plugin/SuperSlide/css/style.css" />
<script type="text/javascript" src="{SKIN_PATH}js/jquery1.42.min.js"></script>
<script src="{SKIN_PATH}js/plugin/SuperSlide/js/jquery.SuperSlide.2.1.1.js" type="text/javascript"></script>
<div class="lanmu">
	<div class="tle"><h4>{$CATEGORYS[$top_parentid][catname]}</h4><em>{$CATEGORYS[$top_parentid][catdir]}</em></div>
    {if $top_parentid && $CATEGORYS[$top_parentid][child]}
        <div class="sideMenu" style="margin:0 auto">
            {php $cat_list=explode(',',$CATEGORYS[$top_parentid][arrchildid]);array_shift($cat_list);}
            {loop $cat_list $k $v}
                {if $CATEGORYS[$v][parentid]==$top_parentid}
                {if strpos(','.$CATEGORYS[$catid][arrparentid].',',','.$v.',')!=false || $catid==$v}
                    {php $cur_catid=$v;}
                {/if}
                <h3 id="cat_{$v}"><em></em><a title="{$CATEGORYS[$v][catname]}" href="{$CATEGORYS[$v][url]}">{str_cut($CATEGORYS[$v][catname],16,'')}</a></h3>
                {if $CATEGORYS[$v][child]}
                {php $sub_cat_list=explode(',',$CATEGORYS[$v][arrchildid]);array_shift($sub_cat_list);}
                <ul>
                    {loop $sub_cat_list $k2 $v2}
                    {if $CATEGORYS[$v2][parentid]==$v}
                    <li><a href="{$CATEGORYS[$v][url]}" title="{$CATEGORYS[$v][catname]}">{str_cut($CATEGORYS[$v2][catname],16,'')}</a></li>
                    {/if}
                    {/loop}
                </ul>
                {/if}
                {/if}
            {/loop}
        </div>
    {/if}
</div>
<script type="text/javascript">
	$(function() {
		var defaultindex=$("h3").index($("#cat_{$cur_catid}"));
		if(defaultindex<0)defaultindex=0;
		jQuery(".sideMenu").slide({ titCell:"h3", targetCell:"ul", effect:"slideDown", delayTime:300 , trigger:"click", triggerTime:300, defaultPlay:true, returnDefault:false,defaultIndex:defaultindex});
	});
</script>